<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css选择器</title>
    <link rel="stylesheet" href="./style/cssshuxingjicheng.css">
    <link rel="stylesheet" href="./style/cssyouxianji.css">
    <link rel="stylesheet" href="./style/index.css">
    <link rel="stylesheet" href="./style/caidanlan.css">
    <link rel="icon" href="./img/touxiang.jpg">
</head>
<style>
    * {
        padding: 0;
        margin: 0;
    }
</style>

<body>
    <header>
        <nav style="background-color: black;">
            <div class="hleft" style="height: 0px;">
                <img src="./img/touxiang.jpg" alt="">
            </div>
            <div class="hright">
                <a href="https://gitee.com/tian158/task" target="_blank">点击打开仓库</a>
                <div id="bkon" class="bk">
                    <div class="block"></div>
                    <div class="block"></div>
                    <div class="block"></div>
                </div>
            </div>
            <div class="hidbox">
                <div class="container">
                    <div class="square" style="--d: 1"></div>
                    <div class="square" style="--d: 2"></div>
                    <div class="square" style="--d: 3"></div>
                    <div class="square" style="--d: 4"></div>
                    <div class="square" style="--d: 5"></div>
                    <div class="square" style="--d: 6"></div>
                    <div class="square" style="--d: 7"></div>
                    <div class="square" style="--d: 8"></div>
                    <div class="square" style="--d: 9"></div>
                </div>
                <div class="hidboxspan menu" style="display: none;">
                    <ul>
                        <li style="--clr:#fff">
                            <a href="./选择器和盒子模型.html" data-text="&nbsp;返回">&nbsp;返回&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./index.html" data-text="&nbsp;主页">&nbsp;主页&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./css选择器.html" data-text="&nbsp;选择器">&nbsp;选择器&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./盒子模型.html" data-text="&nbsp;盒子模型">&nbsp;盒子模型&nbsp;</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <div class="inherit" style="height: 70px; width: 100%;"></div>
    <section>
        <div class="inherit" style="border: 2px solid black;">
            这个div里添加了一系列常用可以继承的css属性具体请看<a href="./style/cssshuxingjicheng.css">cssshuxingjicheng.css文件</a>
            <div style="border: 2px solid black;">这个盒子展示继承的所有属性</div>
        </div>
        <div id="frist-div" class="how-much" title="" style="padding: 0 5%;border: 2px solid black;">
            这个盒子展示的是html、body、div#frist-div[title]、.how-much:hover的优先级
            具体请看<a href="./style/cssyouxianji.css">cssyouxianji.css文件</a>
            <br>
            结果是div#first-div[title]>.how-much:hover>body>html
        </div>
        <div style="border: 2px solid black;  color: #ed556a;">
            这个盒子展示计量单位
            <hr>
            <div style="font-size: 5rem;">5rem</div>
            rem是相对于根元素的字体大小来确定。通常情况下，浏览器默认的根元素字体大小是16px，除非另有设置
            <div style="font-size: 5em;">5em</div>
            em的大小是相对于其父元素的字体大小来确定的
        </div>
    </section>
</body>
<script src="./js/anim.js"></script>
</html>